package edu.sandau.b230151.b23015128.model;

import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Goods {
    private String name;
    @Id
    private String id;
    private Float price;
    public  Goods(){

    }
    public Goods(String id,String name,Float price) {
        this.id = id;
        this.name = name;
        this.price=price;
    }
    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
